home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 December / CHIP_CD_2003-12.iso / software / regworks / rwsetup1_1.exe / {app} / simple.xsl < prev    next >
Extensible Markup Language  |  2003-09-03  |  1KB  |  53 lines

  1. <?xml version="1.0" encoding="windows-1251"?>
  2. <xsl:stylesheet
  3.    version="1.0"
  4.    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  5.    xmlns="http://www.w3.org/1999">
  6.    
  7.    <xsl:output method="html" encoding="windows-1251"/>
  8.  
  9.    <xsl:template match="log">
  10.    <style>
  11.     <xsl:text>
  12.       body { background: #f0f3f6; margin: 1em; }
  13.       .rame {
  14.         background: white;
  15.         border: 1px solid #909396;
  16.       }
  17.  
  18.       .full {
  19.         background: #d0d3d6;
  20.         border: none;
  21.       }
  22.  
  23.       #f10 {
  24.         font: 10pt Verdana, Arial, Sans-serif;
  25.         color: #333333;
  26.         margin: 1;
  27.         padding: 4 4 4 4;
  28.         spacing: 1;
  29.       }
  30.     </xsl:text>
  31.    </style>
  32.     <table width="100%" cellspacing="0" border="1" class="rame">
  33.      <tr class="full" id="f10">
  34.       <td width="10%">Process</td>
  35.       <td width="70%">Key</td>
  36.       <td width="10%">Function</td>
  37.       <td width="10%">Result</td>
  38.      </tr>
  39.      <xsl:apply-templates select="logentry"/>
  40.     </table>
  41.    </xsl:template>
  42.  
  43.    <xsl:template match="logentry">
  44.     <tr id="f10">
  45.      <td><xsl:value-of select="parameter[@type='process']"/></td>
  46.      <td><xsl:value-of select="parameter[@type='key']"/></td>
  47.      <td><xsl:value-of select="@function"/></td>
  48.      <td><xsl:value-of select="@result"/></td>
  49.     </tr>
  50.    </xsl:template>
  51.  
  52.    <xsl:template match="parameter"/>
  53. </xsl:stylesheet>